import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/admin/adminGroup/getList',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: '/admin/adminGroup/doEdit',
    method: 'post',
    data,
  })
}

export function toResetPassword(data) {
  return request({
    url: '/admin/adminGroup/resetPassword',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/admin/adminGroup/doDelete',
    method: 'post',
    data,
  })
}

export function changeStatus(data) {
  return request({
    url: '/admin/adminGroup/changeStatus',
    method: 'post',
    data,
  })
}

export function getCheckedData(data) {
  return request({
    url: '/admin/adminGroup/getRuleIdsById',
    method: 'post',
    data,
  })
}

export function doRulesEdit(data) {
  return request({
    url: '/admin/adminGroup/doRulesEdit',
    method: 'post',
    data,
  })
}
